import java.io.*;
import java.util.*;

/** program to find compression ratio using LZW compression
 */
public class Main {

	public static void main(String[] args) throws IOException {

		long start = System.currentTimeMillis();
		String inputFileName = args[0];
		FileReader reader = new FileReader(inputFileName);
		Scanner in = new Scanner(reader);
		
		// read in the data and do the work here
		// read a line at a time to enable newlines to be detected and allowed for

		reader.close();
		
		String outputFileName = args[1];
		FileWriter writer = new FileWriter(outputFileName);
		writer.write("Input file " + inputFileName + "  LZW algorithm\n\n");
		
		// write out the results here

		long end = System.currentTimeMillis();
		writer.write("\nElapsed time: " + (end - start) + " milliseconds");
		writer.close();
	}

}
